package com.example.demo01.Entity.webEntity;

import org.springframework.stereotype.Component;

@Component
public class NVWeight extends NameValue{
    //attributes
    protected Float wieght;
    //setter
    public void setWieght(Float wieght) {
        this.wieght = wieght;
    }
    //getter
    public Float getWieght() {
        return wieght;
    }
    //constructors
    public NVWeight(){    super();    }
    public NVWeight(String name, Long value){   super(name, value); }
    public NVWeight(String name, Long value, Float wieght){
        super(name,value);
        this.wieght=wieght;
    }
    //toString
    @Override
    public String toString() {
        return "NVWeight{" +
                "wieght=" + wieght +
                ", name='" + name + '\'' +
                ", value=" + value +
                '}';
    }
}
